package cc.fs.zhihuapp.ui.activity.demo;

import android.os.Bundle;
import android.os.Message;
import android.view.View;
import android.widget.Button;

import butterknife.ButterKnife;
import butterknife.InjectView;
import cc.fs.zhihuapp.R;
import cc.fs.zhihuapp.ui.activity.helper.BaseActivity;

/**
 * Created by fostion on 1/7/16.
 */
public class ErrorActivity extends BaseActivity {

    @InjectView(R.id.btn)
    Button btn;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        this.setContentView(R.layout.activity_error);

        ButterKnife.inject(this);
        btn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                throw new NullPointerException();
            }
        });
    }

    @Override
    public void handler(Message msg) {

    }
}
